﻿namespace ChromeWindow;

/// <summary>
/// 非客户区命中测试结果，参考：https://learn.microsoft.com/zh-cn/windows/win32/inputdev/wm-nchittest
/// </summary>
public enum NonClientHitTestResult
{
    Error = -2,
    Transparent = -1,
    Nowhere = 0, // 在屏幕背景上，或在窗口之间的分隔线上。
    Client = 1, // 命中客户区
    Caption = 2, // 标题栏
    SystemMenu = 3, // 系统菜单
    GrowBox = 4,
    Size = GrowBox,
    Menu = 5,
    HorizontalScroll = 6,
    VerticalScroll = 7,
    MinButton = 8,
    MaxButton = 9,
    Left = 10,
    Right = 11,
    Top = 12,
    TopLeft = 13,
    TopRight = 14,
    Bottom = 15,
    BottomLeft = 16,
    BottomRight = 17,
    Border = 18,
    Reduce = MinButton,
    Zoom = MaxButton,
    SizeFirst = Left,
    SizeLast = BottomRight,
    Object = 19,
    Close = 20,
    Help = 21
}